<?php
namespace Org\Tao;
    include "TopSdk.php";
    date_default_timezone_set('Asia/Shanghai'); 
    class test{
        public function kouling($title="",$pic="",$url=""){
            $c = new \TopClient;
            $c->appkey = "23550002";
            $c->secretKey = "9d44a86c02fd56461a65c60d3f924fbf";
            $req = new \TbkTpwdCreateRequest;
            $req->setUserId("2469313799");
            $req->setText($title);
            $req->setUrl($url);
            $req->setLogo($pic);
            $req->setExt("{}");
            $resp = $c->execute($req);
            return $resp->data->model;
        }
    }

	
	 //var_dump(urlencode(mb_convert_encoding('阿里发票商家答疑', 'gb2312', 'utf-8')));
?>